package alkynedbmki;

import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JToolBar;

public class window extends JFrame {
    JPanel workingspace = new JPanel();
    
    public window(){
        a_initalize_window();
    }
    
    private void a_initalize_window(){
        this.setTitle(AKglobals.strings.programname + " " + AKglobals.strings.programversion);
        this.setSize(AKglobals.parameters.mainwindow_width,AKglobals.parameters.mainwindow_height);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setLocationRelativeTo(null);   
        this.setVisible(true);
        this.setContentPane(workingspace);
        workingspace.setLayout(new BorderLayout());
        
        
        a_build_interface();
    }
    private void a_build_interface(){
        JToolBar toolbar = new JToolBar("Alkyne Menu");
        JButton toolbar_save = new JButton("Save");
        JButton toolbar_export = new JButton("Export");
        JButton toolbar_addFolder = new JButton("Add Folder");
        JButton toolbar_manageFolders = new JButton("Manage Folders");
        toolbar.setFloatable(false);
       
        toolbar.add(toolbar_save);
        toolbar.add(toolbar_export);
        toolbar.add(new JToolBar.Separator());
        toolbar.add(toolbar_addFolder);
        toolbar.add(toolbar_manageFolders);
        
        workingspace.add(toolbar,BorderLayout.NORTH);
    }
    
    private void view_datagrid(){
        
    }
    

}
